home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1995 November / Macworld Nov ’95.toast / Developers / LControlPanel & Friends / About LControlPanel & Friends next >
Encoding:
Text File  |  1995-06-22  |  3.3 KB  |  88 lines  |  [TEXT/MPCC]

  1. LControlPanel & Friends
  2. A delightful controll panle;
  3. mix with equal tonnage of PowerPlant
  4. ©1995 Chris K. Thomas.  All Rights Reserved.
  5. Reach me at ckt@best.com
  6.  
  7. Version 1.0d1
  8.  
  9. This is a preliminary release of LControlPanel & Friends, a very small 
  10. set of classes which enables the use of PowerPlant LPane subclasses 
  11. (including, of course, LViews) in System 7 Control Panels.  Your LPanes 
  12. require no modification to work with LControlPanel & Friends.  (Yeeha!)
  13.  
  14. There are two advantages to this approach:
  15.  
  16. 1.  Copland will require control panels to be applications of a special 
  17. type.  The same LPanes you use in your LControlPanel will work just fine 
  18. in your LControlPanelApplication at some later point (sooner than you 
  19. think! yeeha!  On Schedule!).
  20.  
  21. 2.  Control Panels are incredibly annoying to write under normal 
  22. circumstances.  PowerPlant soothes the pain and increases the power.
  23.  
  24. —————————————• Mary Anne
  25.  
  26. Suggestions, faint praise, damning criticism, bugs, questions are all 
  27. welcome at ckt@best.com.  Available in September 1995 - ask for my 
  28. résumé by name.  Or hire me sight unseen.
  29.  
  30. —————————————• The Shaky Hands
  31.  
  32. Hey! I've done literally five minutes of testing with this.  This 
  33. software is provided AS IS.  It just might fry your Mac's CPU ("cpu" for 
  34. you 68k owners).  You use it at your own risk.  The author is not 
  35. responsible for damage caused by the use of this software, directly or 
  36. indirectly, ad infinitum, ad naseum.
  37.  
  38. * You may distribute and use this freely with the following exceptions:
  39.  
  40. * You may not distribute this software through Prodigy.
  41. * You may not distribute this software through Microsoft Network.
  42. * The dishonorable Senators Exon and Dole may not use this software.
  43. * Not that they would know a keyboard from a fig or have anywhere near 
  44. the intellect of a thimble, let alone enough to program a computer, but 
  45. it's the *principle*.
  46.  
  47. * This read me file must be included wherever the source files are 
  48. distributed.  You may not distribute modified versions of these files.
  49.  
  50. —————————————• Usage Notes
  51.  
  52. Everything should be self-explanatory, if you're already experienced 
  53. with PowerPlant; the possibly non-obvious things I've noted below.
  54.  
  55. • Project file
  56.  
  57. You need to have LGrafPortView in your project, and whatever pane stuff 
  58. PP wants.  Add some of the basic utilties.  I'll put in an example next 
  59. release.  I just don't have anything ready yet.
  60.  
  61. • Resources
  62. Create a single 'nrct'-area covering your entire control panel.  
  63. Multiple 'nrct' entries will complicate things needlessly and just 
  64. duplicates what you already have in PowerPlant.  See IM: More Mac 
  65. Toolbox for more information.
  66.  
  67. You need to have one *enabled* user item covering the entire control 
  68. panel in the 'ditl' resource.
  69.  
  70. • Source
  71.  
  72. In order to instantiate your control panel subclass, which LControlPanel 
  73. can't know about, you need to declare this function, which returns a 
  74. pointer to your LControlPanel subclass.
  75.  
  76. StdControlPanel *CreateControlPanel(DialogPtr inDialog)
  77. {
  78.     return new MyControlPanelClassType; /* or whatever;  error checking can go here */
  79. }
  80.  
  81. [LControlPanel is a subclass of StdControlPanel, which is a 
  82. non-PowerPlant specific control panel class.  I might remove 
  83. StdControlPanel in the future and go directly to PowerPlant.]
  84.  
  85. —————————————•: LControlPanel Unplugged
  86.  
  87. LControlPanel is granted through the Grace of God in Her aspect as Steve 
  88. Wozniak.